<script type="text/html" template lay-done="layui.data.sendParams(d.params)">
<div class="fromPage">
    <form class="layui-form layui-form-pane" lay-filter="LAY-content-column-form">
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input class="layui-input" type="number" name="sort" value="0">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label must">名称</label>
            <div class="layui-input-block">
                <input class="layui-input" type="text" name="name" lay-verify="required" lay-vertype="tips" >
            </div>
        </div>

        <div class="layui-form-item" pane="">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="显示" >
                <input type="radio" name="status" value="0" title="隐藏" checked>
            </div>
        </div>

    </form>
</div>
</script>
<script>
    layui.data.sendParams = function(params) {
        let fromData = params.data;
        layui.use('admin', function () {
            const {form} = layui;
            fromData && form.val('LAY-content-column-form', fromData)
        })
    };
</script>
